<template>
  <div id="header">
    <div class="logo">
      <img src="../assets/img/logo.jpg" alt="">
    </div>
    <div class="welcome">
      <h2>WELCOME</h2>
      <span class="vr"></span>
      <p class="des">承千年精粹，为往圣继绝学。</p>
    </div>
    <div class="nav">
      <router-link to="/">主页</router-link>
      <router-link to="/journal">历史事件</router-link>
      <router-link to="/album">艺术产品</router-link>
	  <router-link to="/figure">历史人物</router-link>
      <router-link to="/share">地点景区</router-link>
      <router-link to="/personal">个人中心</router-link>
    </div>
  </div>
</template>
 
<script>
export default {
  name: 'Header',
}
</script>

<style scoped lang='less'>
#header{
  width: 100%;
  height: 410px;
  background: url("../assets/img/bg.jpg") no-repeat;
  position: relative;
  user-select: none;
  .logo{
    width: 188px;
    height: 188px;
    padding: 5px;
    background-color: #fff;
    border-radius: 50%;
    top: 40px;
    bottom: 0;
    position: relative;
    left: 0;
    right: 0;
    margin:  auto;
    overflow: hidden;
    img{
      width: 188px;
      height: 188px;
    }
  }
  .welcome{
    width: 405px;
    height: 70px;
    position: relative;
    margin: auto;
    margin-top: 55px;
    text-align: center;
    h2{
      color: rgb(68, 68, 68);
      font-size: 24px;
    }
    .vr{
      background-color: rgb(255, 192, 1);
      display: block;
      width: 60px;
      height: 2.5px;
      margin: 20px auto;
    }
    .des{
      color: #777777;
      font-size: 14px;

    }
  }
  .nav{
    width: 600px;
    height: 56px;
    position: relative;
    margin: auto;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    a {
    color: #2c3e50;
    font-size: 16px;
    width: 100px;
    height: 55px;
    line-height: 55px;
    text-align: center;
    box-sizing: border-box;
    color: #777777;
    text-decoration: none;
    transition: all .3s;
    &:hover{
      color: rgb(255, 192, 1);
      border-bottom: 2px solid rgb(255, 192, 1);
    }
    &.router-link-exact-active {
      color: rgb(255, 192, 1);
      border-bottom: 2px solid rgb(255, 192, 1);
    }
  }
  }
}
</style>